package com.bruce.shop.service;

import com.bruce.shop.entity.Page;

import java.util.List;

/**
 * @author BruceXia
 * @version 1.0.0
 * @description:抽取出来的业务层实现crud等功能的接口。供子类继承实现功能复用
 * @date 2022/9/1719:15
 */
public interface BaseService<T> {

    public boolean save(T t);

    public boolean updateById(T t);

    public T byId(Integer id);

    public boolean removeById(Integer id);

    public List<T> list();

    public void page(Page<T> page);

}
